package com.octopus.yangj.customized.dao;

import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Component;
import com.octopus.yangj.generated.dao.KnowledgeCategoryDao;

@Component
public class CustomizedKnowledgeCategoryDao extends KnowledgeCategoryDao{
	
	public void deleteByKey(Long categoryId) {
		try{
			String str = "delete from knowledge_catgory_link where categoryid= :categoryid";
			Map<String, Object> parms = new HashMap<String, Object>();
			parms.put("categoryid", categoryId);
			super.executeSQL(str, parms);
		}catch(Exception e){
			
		}
		super.deleteByKey(categoryId);
	}

}
